class AdminController < ApplicationController
  before_filter :admin?
  #layout :judge_layout
  layout "noframe"
 
  def index

  end

  def left
   
  end

  def middel
    render :layout=>"admin"
  end

  def top
  end

  private
  def judge_layout
    action_name=="index"?"noframe":"admin"
  end

end
